//
// Created by longyunbo on 7/21/21.
//

#ifndef ANALYSIS_THREADS_H
#define ANALYSIS_THREADS_H
#include "../oops/AllStatic.h"
#include <stdlib.h>
#include <stdio.h>
#include "vector"
#include <list>
#include "thread"
#include "../runtime/JavaThread.h"

using namespace std;

class Threads : AllStatic {

    list<thread>* threadList;
    thread currentThread;

    list<thread>* getThreadList();
    JavaThread mycurrentThread();
    void setMyCurrentThread( thread value );



    //public static JavaThread currentThread() {
    //        return (JavaThread) currentThread;
    //    }
    //
    //    public static void setCurrentThread(Thread thread) {
    //        currentThread = thread;
    //    }





};


#endif //ANALYSIS_THREADS_H
